package com.killer.utils;

import java.lang.reflect.Method;

public class ClazzUtil {

    public static Method getSetMethod(Class clazz,String name) {
        Method[] methods = clazz.getDeclaredMethods();
        for (Method method : methods) {
            if (name.equals(method.getName())) {
                return method;
            }
        }
        return null;
    }
}
